<?xml version="1.0"?>
<project   name="eGrid" default="test">
<property value="eGrid" name="project" />
	<!-- Location of the APDT Project and the AP server -->
	<property name="build.dir" value="C:\Documents and Settings\Administrator\.hudson\jobs\${project}\workspace\${project}"/>
	
 <!-- Start by cleaning the build area -->
  <target name="clean" description="remove all build products" >
	
    <delete dir="build" if="${directory::exists('build.dir')}" />
  </target>
  <!-- Create a build area -->
  <target name="init" depends="clean">
    <mkdir dir="build"/>
  </target>
  <target name="compile" depends="init">
      <exec
      program="C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
      commandline="${project}.sln"/>
 

 </target>


 <target name="test" depends="compile"> 

	<delete dir="TestResults"/>
	<mkdir dir="TestResults"/>
	<exec
		  program="C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\mstest.exe"
		  commandline="/testmetadata:${project}.vsmdi /resultsfile:TestResults\testResults.trx"/>

 </target>





</project>







